
#def get_the_stuff:
class StuffPutter
  
  def initialize(stuff_id)
    puts stuff_id
    #resolve_id_to_internal_id(stuff_id)
    @internal_id = get[stuff_id]
  end
  
  def get
    tr_id = {
      1 => :d,
      2 => :s,
      3 => :g
    }
    return tr_id
  end
  
  def get_names
    d = {
      :g => "stays for Ginger",
      :s => "stays for Sith",
      :d => "stays for Darth "
    }
    return d
  end
  
  def all_the_stuff
    names = get_names
    for key in [:g, :s, :d]
      if names[:d] =~ %r{^s(.*?)\sfor\s(.*?)+\s$}
        puts key  , " " , names[key] #,  " ^___^"
      end 
    end
  end
  
  def get_the_stuff
    puts @internal_id
    puts "<-----" , @internal_id , " " , get_names[@internal_id] , "----->"
  end
end

wonder = StuffPutter.new(0)
wonder.get_the_stuff
wonder.all_the_stuff



#get_the_stuff
